package com.lzb.compressmaster.utils;


import java.util.ArrayList;
import java.util.List;


public class CompressFileManager {
    private static CompressFileManager instance;
    private final List<String> selectFileBeanList = new ArrayList<>();

    private CompressFileManager() {

    }

    public synchronized static CompressFileManager getInstance() {
        if (instance == null) {
            instance = new CompressFileManager();
        }
        return instance;
    }

    public List<String> getSelectFileBeans() {
        return selectFileBeanList;
    }

    public void addSelectFile(String selectFileBean) {
        selectFileBeanList.add(selectFileBean);
    }

    public void deleteSelectFile(int position) {
        selectFileBeanList.remove(position);
    }

    public void clearSelectFile() {
        selectFileBeanList.clear();
    }

}